home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6224 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Subject: Re: U MUST READ THIS!!!!!
  3. From: mbutler@visualradio.com (Butler)
  4. X-Newsreader: WinVN 0.99.7
  5. References: <4epbn1$4hq@ixnews7.ix.netcom.com>
  6. MIME-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. NNTP-Posting-Host: 204.252.42.69
  9. Message-ID: <311e8049.0@vinny.visualradio.com>
  10. Date: 11 Feb 96 23:48:25 GMT
  11. Path: vinny.visualradio.com!
  12.  
  13. In article <4epbn1$4hq@ixnews7.ix.netcom.com>, jeremyx@ix.netcom.co says...
  14. >    Everyone keeps telling me not to use the "goto"
  15. >statement,they act like it's the plague! What is wrong with the goto
  16. >statement & what can i use in it's place?
  17.  
  18.     The problem w/the goto statement is that it makes for "spaghetti code". 
  19.     In plain english it makes your programs harder to read, debug, 
  20.     understand, etc...
  21.  
  22.     In it's place use the loops that are available in C/C++.  Most anything 
  23.     you can do with goto, can be constructed w/a carefully coded, for, 
  24.     while, if, etc...
  25.  
  26.     So now both of your questions have been answered.  You should be able 
  27.     to print '\' and your programs should be more readable.  Now do us all 
  28.     a favor and help keep this newsgroup readable, by not putting titles on 
  29.     your posts, like "YOU MUST READ THIS" and "IMPORTANT" as though they 
  30.     were items of general interest.  People will usually answer your 
  31.     questions if you just show a little common courtesy.         
  32. -- 
  33. Butler
  34. mailto:mbutler@visualradio.com
  35.  
  36.